/*
package com.heima.admin.job;

import com.heima.admin.feign.ApArticleFeign;
import com.heima.admin.feign.WmMediaFeign;
import com.heima.admin.service.ApArticleAutoHandleService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AutoScannerNews {
    @Autowired
    private WmMediaFeign wmMediaFeign;
    @Autowired
    private ApArticleAutoHandleService apArticleAutoHandleService;
*/
/*    @XxlJob("wemediaAutoScanJob")
    public ReturnT<String> scannerNews(String param){
        List<Integer> list = apArticleFeign.findRelease();
        if (list!=null&&list.size()>0){
            for (Integer newsId : list) {
                apArticleAutoHandleService.autoReviewrticlesA(newsId);
            }
        }
        return ReturnT.SUCCESS;
    }*//*

    @XxlJob("wemediaAutoScanJob")
    public ReturnT newsAutoScanJob(String param){
        //1.查询符合条件的文章信息
        List<Integer> idList = wmMediaFeign.findRelease();
        if(idList != null && !idList.isEmpty()){
            for (Integer id : idList) {
                apArticleAutoHandleService.autoReviewrticlesA(id);
            }
        }

        //2.调用自动审核

        return ReturnT.SUCCESS;
    }

}
*/
